home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
-
- <?xml-stylesheet href="chrome://browser/skin" type="text/css"?>
- <?xml-stylesheet href="chrome://browser/content/browser.css" type="text/css"?>
- <?xml-stylesheet href="chrome://showcase/skin/window.css" type="text/css"?>
- <?xml-stylesheet href="chrome://global/skin/findBar.css" type="text/css"?>
-
-
- <!DOCTYPE window [
- <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
- %brandDTD;
- <!ENTITY % realBrowserDTD SYSTEM "chrome://browser/locale/browser.dtd" >
- %realBrowserDTD;
- <!ENTITY % browserDTD SYSTEM "chrome://showcase/locale/browser.dtd" >
- %browserDTD;
- <!ENTITY % showcaseDTD SYSTEM "chrome://showcase/locale/showcase.dtd">
- %showcaseDTD;
- <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
- %globalDTD;
- ]>
-
- <window title="&showcase.title;"
- windowtype="extension:showcase"
- id="showcaseWindow"
- onload="startup();"
- onunload="unloadShowcase();"
- onfocus="showcaseGainedFocus();"
- buttons="accept"
- class="showcaseWindow"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
- <box hidden="true">
- <html:link rel="icon" href="chrome://showcase/skin/icon16.png" type="image/png"/>
- </box>
- <script src="chrome://global/content/nsDragAndDrop.js"/>
- <script src="chrome://global/content/nsTransferable.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/browser.js"/>
- <script type="application/x-javascript" src="showcase.js" />
-
- <script type="application/x-javascript" src="chrome://global/content/contentAreaUtils.js"/>
- <script type="application/x-javascript" src="chrome://browser/content/bookmarks/bookmarks.js"/>
-
- <script type="application/x-javascript"
- src="chrome://global/content/globalOverlay.js"/>
- <script type="application/x-javascript"
- src="chrome://browser/content/utilityOverlay.js"/>
- <script type="application/x-javascript"
- src="chrome://browser/content/places/utils.js"/>
-
- <stringbundleset id="stringbundleset">
- <stringbundle id="bundle_tabbrowser"
- src="chrome://global/locale/tabbrowser.properties"/>
- <stringbundle id="bundle_showcase"
- src="chrome://showcase/locale/showcase.properties"/>
-
- </stringbundleset>
-
- <command id="cmd_close" oncommand="showcaseCloseWindow();"/>
- <command id="cmd_sendlink" oncommand="showcaseSendLink();"/>
- <command id="cmd_savepage" oncommand="try {saveDocument(window.showcasePopupTab.targetTab.contentWindow.document);} catch (e) {alert(e);}"/>
- <command id="cmd_print" oncommand="showcasePrint();"/>
- <command id="cmd_opentab" oncommand="openSelectedTab();"/>
- <command id="cmd_closeother" oncommand="closeOtherTabs();"/>
- <command id="cmd_closetab" oncommand="closeSelectedTabs();"/>
- <command id="cmd_closewindow" oncommand="closeSelectedWindow();"/>
- <command id="cmd_refresh" oncommand="refreshScreen();"/>
- <command id="cmd_fullscreen" oncommand="toggleFullScreen();"/>
- <command id="cmd_addbookmark" oncommand="showcaseAddBookmark();"/>
- <command id="cmd_bookmarkselected" oncommand="showcaseBookmarkSelected();"/>
- <command id="Browser:Back" oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goBack(); } catch (e) { alert(e); }" disabled="true"/>
- <command id="Browser:Forward" oncommand="try { window.showcasePopupTab.targetTab.webNavigation.goForward(); } catch (e) { alert(e); }" disabled="true"/>
- <command id="Browser:Stop" oncommand="showcaseBrowserStop();" disabled="true"/>
- <command id="Browser:Reload" oncommand="if (event.shiftKey) showcaseBrowserReloadSkipCache(); else showcaseBrowserReload()" disabled="true"/>
- <command id="cmdkey_left" oncommand="keyboardLeft(event);"/>
- <command id="cmdkey_right" oncommand="keyboardRight(event);"/>
- <command id="cmdkey_up" oncommand="keyboardUp(event);"/>
- <command id="cmdkey_down" oncommand="keyboardDown(event);"/>
- <command id="cmdkey_enter" oncommand="keyboardEnter();"/>
- <command id="cmdkey_delete" oncommand="keyboardDelete();"/>
- <command id="cmdkey_home" oncommand="keyboardHome(event);"/>
- <command id="cmdkey_end" oncommand="keyboardEnd(event);"/>
- <command id="cmd_options" oncommand="showShowcaseOptions();"/>
- <command id="cmd_selectall" oncommand="selectAll();"/>
- <command id="cmd_find" oncommand="findShortcutAction();"/>
- <command id="View:PageSource" oncommand="BrowserViewSourceOfDocument(window.showcasePopupTab, window.showcasePopupTab.targetTab.contentWindow.document);"/>
- <command id="View:PageInfo" oncommand="BrowserPageInfo(window.showcasePopupTab.targetTab.contentWindow.document);"/>
- <command id="cmd_duplicateselected" oncommand="duplicateInNewWindow();"/>
- <command id="cmd_mergeselected" oncommand="mergeInNewWindow();"/>
- <command id="cmd_showonlycurrent" oncommand="toggleShowOnlyCurrent();"/>
- <command id="cmd_showcasethis" oncommand="showcaseSelectedWindow();"/>
- <command id="cmdkey_zoomin" oncommand="zoomIn();"/>
- <command id="cmdkey_zoomout" oncommand="zoomOut();"/>
-
-
- <popupset id="mainPopupSet">
- <popup id="tabMenu" onpopupshowing="showingTabPopup(event);" onpopupshown="event.stopPropagation();" onpopuphiding="event.stopPropagation();" onpopuphidden="hiddenTabPopup(event);">
- <menuitem id="context-opentab" label="&showcaseOpen;" command="cmd_opentab" hidden="true"/>
- <menuitem id="showcaseMenuItem" label="&showcaseThisCmd.label;" command="cmd_showcasethis" hidden="true"/>
- <menuseparator id="openTabSeparator" hidden="true"/>
- <menuitem id="context-back" label="&backCmd.label;" accesskey="&backCmd.accesskey;" command="Browser:Back" hidden="true"/>
- <menuitem id="context-forward" label="&forwardCmd.label;" accesskey="&forwardCmd.accesskey;" command="Browser:Forward" hidden="true"/>
- <menuitem id="context-reload" label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" command="Browser:Reload" hidden="true"/>
- <menuitem id="context-stop" label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" command="Browser:Stop" hidden="true"/>
- <menuseparator id="navigationSeparator" hidden="true"/>
- <menuitem id="duplicateTab" label="&duplicateTabCmd.label;" command="cmd_duplicateselected" hidden="true"/>
- <menuitem id="duplicateSelected" label="&duplicateSelectedCmd.label;" command="cmd_duplicateselected" hidden="true"/>
- <menuitem id="moveTab" label="&moveTabCmd.label;" command="cmd_mergeselected" hidden="true"/>
- <menuitem id="mergeSelected" label="&mergeSelectedCmd.label;" command="cmd_mergeselected" hidden="true"/>
- <menuitem id="context-bookmarkpage" label="&bookmarkPageCmd.label;" accesskey="&bookmarkPageCmd.accesskey;" command="cmd_addbookmark" hidden="true"/>
- <menuitem id="bookmarkSelectedTabs" label="&bookmarkSelectedTabs;" command="cmd_bookmarkselected" hidden="true"/>
- <menuitem id="context-savepage" label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" command="cmd_savepage" hidden="true"/>
- <menuitem id="context-sendpage" label="&sendPageCmd.label;" accesskey="&sendPageCmd.accesskey;" command="cmd_sendlink" hidden="true"/>
- <menuitem id="print" label="&printCmd.label;" accesskey="&printCmd.accesskey;" command="cmd_print" hidden="true"/>
- <menuitem id="viewSource" label="&viewSourceCmd.label;" command="View:PageSource" hidden="true"/>
- <menuitem id="pageInfo" label="&pageInfoCmd.label;" command="View:PageInfo" hidden="true"/>
- <menuseparator id="toolsSeparator" hidden="true"/>
- <menuitem id="popupCloseOther" label="&closeOtherCmd.label;" command="cmd_closeother" hidden="true"/>
- <menuitem id="popupCloseTab" label="&closeTab.label;" accesskey="&closeTab.accesskey;" command="cmd_closetab" hidden="true"/>
- <menuitem id="popupCloseWindow" label="&closeWindow.label;" command="cmd_closewindow" hidden="true"/>
- <menuitem id="popupClose" label="&closeCmd.label;" accesskey="&closeCmd.accesskey;" command="cmd_closetab" hidden="true"/>
- </popup>
- <tooltip id="thumbnailTooltip" onpopupshowing="return showingThumbnailTooltip(event);" orient="vertical">
- <description id="thumbnailTooltipTitle"/>
- <description id="thumbnailTooltipURL"/>
- </tooltip>
- </popupset>
-
- <keyset id="showcaseKeys">
- <key keycode="VK_ESCAPE" command="cmd_close"/>
- <key keycode="VK_F5" command="cmd_refresh"/>
- <key keycode="VK_F11" command="cmd_fullscreen"/>
- <key keycode="VK_F12" command="cmd_close"/>
- <key key="W" modifiers="accel" command="cmd_close"/>
- <key keycode="VK_F12" modifiers="shift" command="cmd_close"/>
- <key key="&reloadCmd.commandkey;" command="cmd_refresh" modifiers="accel"/>
- <key keycode="VK_LEFT" modifiers="accel,shift,any" command="cmdkey_left"/>
- <key keycode="VK_NUMPAD4" modifiers="accel,shift,any" command="cmdkey_left"/>
- <key keycode="VK_RIGHT" modifiers="accel,shift,any" command="cmdkey_right"/>
- <key keycode="VK_NUMPAD6" modifiers="accel,shift,any" command="cmdkey_right"/>
- <key keycode="VK_UP" modifiers="accel,shift,any" command="cmdkey_up"/>
- <key keycode="VK_NUMPAD8" modifiers="accel,shift,any" command="cmdkey_up"/>
- <key keycode="VK_DOWN" modifiers="accel,shift,any" command="cmdkey_down"/>
- <key keycode="VK_NUMPAD2" modifiers="accel,shift,any" command="cmdkey_down"/>
- <key keycode="VK_ENTER" command="cmdkey_enter"/>
- <key keycode="VK_RETURN" command="cmdkey_enter"/>
- <key keycode="VK_DELETE" command="cmdkey_delete"/>
- <key keycode="VK_HOME" modifiers="accel,shift,any" command="cmdkey_home"/>
- <key keycode="VK_END" modifiers="accel,shift,any" command="cmdkey_end"/>
- <key key="O" modifiers="alt" command="cmd_options"/>
- <key key="A" modifiers="accel" command="cmd_selectall"/>
- <key key="F" modifiers="accel" command="cmd_find"/>
- <key key="U" modifiers="accel" command="cmd_showonlycurrent"/>
- <key key="+" command="cmdkey_zoomin"/>
- <key key="-" command="cmdkey_zoomout"/>
- </keyset>
- <hbox flex="1" id="showcase-content-horizontal">
- <scrollbox flex="1" id="showcase-content-vertical">
- <stack id="showcase-box" flex="1" chromedir="&locale.dir;">
- <box id="emptyMessage" flex="1" hidden="true">
- <description value="&noThumbnails.label;" disabled="true" />
- </box>
- <box id="selection-box" hidden="true" mousethrough="always"/>
- <box id="drop-box" hidden="true" mousethrough="always"/>
- <toolbarbutton id="cursor-left" hidden="true" onmouseover="zoomScrollingLeft = true; window.setTimeout(doZoomScrollLeft, 20);" onmouseout="zoomScrollingLeft = false;"/>
- <toolbarbutton id="cursor-right" hidden="true" onmouseover="zoomScrollingRight = true; window.setTimeout(doZoomScrollRight, 20);" onmouseout="zoomScrollingRight = false;"/>
- <toolbarbutton id="cursor-up" hidden="true" onmouseover="zoomScrollingUp = true; window.setTimeout(doZoomScrollUp, 20);" onmouseout="zoomScrollingUp = false;"/>
- <toolbarbutton id="cursor-down" hidden="true" onmouseover="zoomScrollingDown = true; window.setTimeout(doZoomScrollDown, 20);" onmouseout="zoomScrollingDown = false;"/>
- <toolbarbutton chromedir="&locale.dir;" id="thumb-back" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);">
- <menupopup onpopupshowing="return thumbIconPopulateBackMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
- </toolbarbutton>
- <toolbarbutton chromedir="&locale.dir;" id="thumb-forward" class="thumb-icon" type="menu-button" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);">
- <menupopup onpopupshowing="return thumbIconPopulateForwardMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
- </toolbarbutton>
- <toolbarbutton chromedir="&locale.dir;" id="thumb-newforward" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&forwardButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconForwardCommand(event);"/>
- <toolbarbutton chromedir="&locale.dir;" id="thumb-newback" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&backButton.tooltip;" onmousedown="event.stopPropagation();" onclick="thumbIconCheckMiddleClick(this,event);" oncommand="thumbIconBackCommand(event);"/>
- <toolbarbutton type="menu" id="thumb-history" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="" onmousedown="event.stopPropagation();" oncommand="thumbIconHistoryCommand(event);">
- <menupopup onpopupshowing="thumbIconPopulateHistoryMenu(event);" oncommand="thumbIconGoToHistoryIndex(event); event.preventBubble()" onclick="thumbIconCheckMiddleClick(this,event);"/>
- </toolbarbutton>
- <toolbarbutton id="thumb-reload" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&reloadButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconReloadCommand(event);"/>
- <toolbarbutton id="thumb-stop" class="thumb-icon" collapsed="true" top="0" left="0" tooltiptext="&stopButton.tooltip;" onmousedown="event.stopPropagation();" oncommand="thumbIconStopCommand();"/>
- </stack>
- </scrollbox>
- </hbox>
-
- <toolbar id="FindToolbar" hidden="true" align="center">
- <toolbarbutton id="find-closebutton" class="findbar-closebutton" tooltiptext="&findCloseButton.tooltip;"
- oncommand="toggleFind();"/>
-
- <label control="find-field" value="&find.label;"/>
- <hbox id="find-field-container" class="find-field-container">
- <textbox id="find-field" class="findbar-textbox" oninput="refreshContent();" onkeypress="onFindBarKeyPress(event);" />
- </hbox>
- <menulist flex="0" id="find-type" oncommand="findTypeChanged(this.selectedIndex);" onkeypress="onFindTypeKeyPress(event, this);" onkeydown="findTypeKeyInhibit(event);" onkeyup="findTypeKeyInhibit(event);">
- <menupopup>
- <menuitem label="&find.title;" />
- <menuitem label="&find.location;" />
- <menuitem label="&find.content;" />
- <menuitem label="&find.any;" selected="true"/>
- </menupopup>
- </menulist>
- <toolbarbutton id="find-invert"
- label="&invert.label;"
- tooltiptext="&invert.tooltip;"
- oncommand="setTimeout(refreshContent, 0);"
- type="checkbox" disabled="true"/>
- <checkbox id="find-case-sensitive" oncommand="toggleSearchCaseSensitivity(this.checked);"
- label="&caseSensitiveCheckbox.label;" accesskey="&caseSensitiveCheckbox.accesskey;"/>
- <image id="find-status-icon" class="find-status-icon"/>
- <label id="find-status" class="find-status"/>
- </toolbar>
-
- <data id="thumbnail-nolabel-template">
- <vbox class="thumbnail" context="tabMenu">
- <box flex="1" anonid="subCanvasBox" tooltip ="thumbnailTooltip">
- <html:canvas title=" " class="thumbnailCanvas"/>
- </box>
- </vbox>
- </data>
-
- <data id="thumbnail-box-template">
- <vbox class="thumbnail" context="tabMenu" align="stretch">
- <hbox class="showcase-topbox" align="stretch" anonid="topbox">
- <hbox class="showcase-top-left"/>
- <hbox align="center" flex="1" class="showcase-top-middle">
-
- <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
-
- <label crop="end" flex="1" class="thumbnail-title" anonid="thumbLabel"/>
- <toolbarbutton class="showcase-tab-close-button" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
- </hbox>
- <hbox class="showcase-top-right"/>
- </hbox>
- <stack flex="1">
- <vbox>
- <hbox flex="1">
- <hbox class="showcase-middle-left"/>
- <hbox flex="1" class="showcase-middle-middle"/>
- <hbox class="showcase-middle-right"/>
- </hbox>
- <hbox align="stretch">
- <hbox class="showcase-bottom-left"/>
- <hbox flex="1" class="showcase-bottom-middle"/>
- <hbox class="showcase-bottom-right"/>
- </hbox>
- </vbox>
- <box anonid="subCanvasBox" tooltip="thumbnailTooltip" class="showcase-container">
- <html:canvas title=" " class="thumbnailCanvas"/>
- </box>
- </stack>
- </vbox>
- </data>
-
- <data id="thumbnail-plain-template">
- <vbox class="thumbnail" context="tabMenu" align="stretch">
- <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
-
- <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
-
- <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
- <separator flex="10000" class="groove"/>
- </caption>
- <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
- <html:canvas title=" " class="thumbnailCanvas"/>
- </box>
- </vbox>
- </data>
-
- <data id="thumbnail-plainclose-template">
- <vbox class="thumbnail" context="tabMenu" align="stretch">
- <caption class="thumbnail-label" align="center" pack="center" style="margin:0;">
-
- <image class="bookmark-item" validate="never" onerror="this.src=null" anonid="thumbIcon"/>
-
- <label crop="end" class="thumbnail-title" anonid="thumbLabel"/>
- <separator flex="10000" class="groove"/>
-
- <image class="tabs-closebutton" anonid="thumbClose" tooltiptext="&closeTab.label;"/>
-
- </caption>
- <box flex="1" anonid="subCanvasBox" tooltip="thumbnailTooltip">
- <html:canvas title=" " class="thumbnailCanvas"/>
- </box>
- </vbox>
- </data>
-
- </window>